package com.example.design.patterns.geekbang.行为型.职责链模式.中途停止.实现方式一.demo;

/**
 * Handler 是所有处理器类的抽象父类
 */
public abstract class Handler {
    protected Handler successor = null;

    public void setSuccessor(Handler successor) {
        this.successor = successor;
    }

    public abstract void handle();
}

